package com.yuliang.controller;


import com.yuliang.domain.R;
import com.yuliang.service.CategoryService;
import io.swagger.annotations.Api;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * 分类表(Category)表控制层
 *
 * @author makejava
 * @since 2023-09-19 16:21:15
 */
@RestController
@RequestMapping("/category")
@Api(description = "分类相关接口")
public class CategoryController {
    /**
     * 服务对象
     */
    @Resource
    private CategoryService categoryService;

    @GetMapping("/getCategoryList")
    public R getCategoryList(){
        return categoryService.getCategoryList();
    }

}

